package com.venus.mq.zk;

import org.I0Itec.zkclient.ZkClient;

/**
 * Created by mc on 18/11/21.
 * 获取zk client实例
 */
public class ZkConfig {

    public static ZkClient zkClient;

    public static ZkClient getInstance(){
        if(zkClient == null){
            //TODO 先写死一下，后期从properties中读取出来
            return new ZkClient("127.0.0.1:2181");
        }else {
            return zkClient;
        }
    }
}
